			<?php
			if($max < $limit){
                for($c = $max; $c < $limit; $c++){
            ?>
            <tr>
                <td colspan="<?php print $colspan ?>" class="<?= $row_class ?>"></td>
            </tr>
            <?php
                    }
                }
            ?>
            <tr>
                <td colspan="<?php print $colspan ?>" class="<?= $row_class ?>"></td>
            </tr>
            <tr>
                <td colspan="<?php print $colspan ?>" class="<?= $row_class ?> _center">
            <?php
            $count = $_SESSION[$count_name];

            $limiti = linkedPages($offset, $limit, $pagine);
            //print("Restituisco da $limiti[0] a $limiti[1]");
            if($offset > 0)
                print("<a style='margin-right: 5px; text-decoration: none' href='".$link."?offset=".($offset - $limit)."&second=1".$nav_params."'>");
            else
                print("<span style='margin-right: 5px; color: #BDBDCF;'>");
            print("&lt;&lt;");
            if($offset > 0)
                print("</a>\n");
            else
                print("</span>");
            //print("&nbsp;&nbsp;&nbsp;");
            for($c = $limiti[0]; $c <= $limiti[1]; $c++){
                if($c <= $pagine){
                    if($c != ($offset / $limit) + 1 )
                        print("<a style='margin-right: 5px; margin-left: 5px; text-decoration: none' href='".$link."?offset=".(($c -1) * $limit)."&second=1".$nav_params."' style=\"font-weight: normal;\">&nbsp;$c&nbsp;");
                    else
                        print("<span style='margin-right: 5px; margin-left: 5px; color: #003366;'>[$c]");

                    if($c != ($offset / $limit) + 1 )
                        print("</a>");
                    else
                        print("</span>");
                    if($c < $limiti[1])
                        print("|");
                }
            }
            print("&nbsp;&nbsp;");
            if(($count - $offset) > $limit)
                print("<a style='margin-left: 5px; text-decoration: none' href='".$link."?offset=".($offset + $limit)."&second=1".$nav_params."' style='font-weight: normal;'>");
            else
                print("<span style='color: #BDBDCF;'>");
            print("&gt;&gt;");
            if(($count - $offset) > $limit)
                print("</a>");
            else
                print("</span>");
            ?>
                </td>
            </tr>
            <tr>
                <td colspan="<?php print $colspan ?>" class="<?= $row_class ?>"></td>
            </tr>